#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <stdlib.h>
//void arr_sort(int *p,int len) {


	//int len = sizeof(arr) / sizeof(arr[0]);
	//int len1 = 0;
	//int len2 = 0;
	//int arr1[] = { 0 };
	//int arr2[] = { 0 };
	//int arr3[] = { 0 };

	//for (int i = 0; i < len; i++) {
	//	if (arr[i] % 2 != 0) {
	//		arr1[i] = arr[i];
	//	}
	//}
	//len1 = sizeof(arr1) / sizeof(arr1[0]);
	//for (int i = 0; i < len; i++) {
	//	if (arr[i] % 2 == 0) {
	//		arr2[i] = arr[i];
	//	}
	//}
	//len2 = sizeof(arr2) / sizeof(arr2[0]);
	//int i = 0;
	//for (; i < len1; i++) {
	//	arr3[i] = arr1[i];
	//}
	//int j = i;
	//for (; j < len2; j++) {
	//	arr3[j] = arr2[0];//
	//}
	//for (int i = 0; i < len; i++) {
	//	printf("%d ", arr3[i]);
	//}
	/*int left=0;
	int right=4;
	while (left < right) {
		if (arr[left] % 2 == 0) {
			int temp = arr[right];
			arr[right] = arr[left];
			arr[left] = temp;
		}
		left++;
		if (arr[right] % 2 != 0) {
			int temp = arr[left];
			arr[left] = temp;

		}
		right--;
		

	}
	for (int i = 0; i < 5; i++) {
		printf("%d ", arr[i]);
	}*/



	/*int* left = p;
	int* right = p + len - 1;
	while (left < right) {
		while (left < right && *left % 2 != 0) {
			left++;
		}
		while (left < right && *right % 2 == 0) {
			right--;
		}
		int temp = *left;
		*left = *right;
		*right = temp;
	}
}
int main()
{
	int arr[] = { 1,3,5,4,7,8,9 };
	int len = sizeof(arr) / sizeof(arr[0]);
	arr_sort(arr,len);
	for (int i = 0; i < len; i++) {
		printf("%d ", arr[i]);
	}
	return 0;
}*/